<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
</head>
<body>
<h1><%= "Hello World!" %>
</h1>
<br/>
<a href="hello-servlet">Hello Servlet</a>
<h3>表单</h3>
<a href="form.html">表单</a>
<h3>登录</h3>
<a href="login.jsp">login（在数据库中判断）</a><br>
<a href="private.jsp">session例子，没有登录不能访问</a><br>
<a href="/private.jsp">jsp中的路径</a><br>
部署网站的名字 <%=request.getContextPath()%>
<h3>Servlet</h3>
<a href="lifecycleDemo">生命周期演示</a><br>
<a href="lifecycle2">多个访问地址</a>
<a href="showLoginPageByServlet">用Servlet显示登录表单</a>
<h3>班级管理</h3>
<a href="showClazzes">显示所有班级</a><br>
<h3>filter</h3>
<a href="sec/private_filter.jsp">只有登录才能访问</a>

<%
    Object count=application.getAttribute("count");
    long num=0;
    if(count==null){
      num=1;
    }else{
      num=(Long)count;
      num++;
    }
    application.setAttribute("count",num);
%>
<h3>已经访问<%=application.getAttribute("count")%>次</h3>
</body>
</html>